<%@ include file="/WEB-INF/views/admin/header.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<div id="section">
	<div id ="mainContent">
			
			
			<div id="labelPage">แก้ไขตัวเลข</div>
			
			<div id="ctrlWrap">
				<div id="ctrlL">
				</div>	
				<div id="ctrlR"></div>
			</div>
			
			<form:form  action="${action}" method="post" id="numberEdit" modelAttribute="Number" >
				<table class="tableList">
					<tr>
						<td>ตัวเลข: </td><td><input type="text" name="number" value="${number.number}"></td>
						<td>ชนิด: </td><td>
								<select  name="type" >
								  <option value="top" <c:if test="${number.type == 'top'}">selected</c:if>>top</option>
								  <option value="down" <c:if test="${number.type == 'down'}">selected</c:if>>down</option>
								</select>
						</td>
						<td>ราคา: </td><td><input type="text" name="price" value="${number.price}"></td>
					</tr>
					<tr>
						<td colspan="6"><input type="hidden" name="numberId" value="${number.numberId}"><button type="submit">บันทึก</button></td>
					</tr>
				</table>
			</form:form>
		
	</div>	
</div>
<%@ include file="/WEB-INF/views/admin/footer.jsp" %>



